package org.eclipselabs.damos.library.signal.simulation;

import org.eclipselabs.damos.dml.InputPort;
import org.eclipselabs.damos.dml.OutputPort;
import org.eclipselabs.damos.simulation.AbstractBlockSimulationObject;
import org.eclipselabs.damos.simulation.Value;

public class DataTypeConversionSimulationObject extends AbstractBlockSimulationObject {

	private Value inputValue;
	
	public void consumeInputValue(InputPort inputPort, Value value) {
		inputValue = value;
	}
	
	public Value getOutputValue(OutputPort outputPort) {
		return inputValue.cast(this, getComponentDataType());
	}
	
}
